import java.util.Scanner;

public class Main1396 {
    public static void main(String[] args) {
            Scanner sc=new Scanner(System.in);
            int n= sc.nextInt();
            int l= sc.nextInt();
            int p= sc.nextInt();
            for (int i=1;i<=(n-p)/l;i++){
                for (int j=1;j<=(n-l)/p;j++){
                    if (l*i+p*j==n&&i+j>50){
                        System.out.println(i+" "+j);
                    }
                }
            }
        }
    }

